--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit 930363f9a349e219af8245ac664e5c0fc65b4502
Parents : d4f8d8e
Author : Mark Qvist <mark@unsigned.io>
Date : 2022-12-23T23:23:17+01:00
Fixed missing check for empty app data in announce handler
Changes
Diff
diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py
index 22676d19..25a71837 100644
--- a/sbapp/sideband/core.py
+++ b/sbapp/sideband/core.py
@@ -23,7 +23,7 @@ class PropagationNodeDetector():
def received_announce(self, destination_hash, announced_identity, app_data):
try:
- if len(app_data) > 0:
+ if app_data != None and len(app_data) > 0:
unpacked = msgpack.unpackb(app_data)
node_active = unpacked[0]
emitted = unpacked[1]
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────